package com.bookmanagement.entity;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class Borrowing {
    private Long id;
    private Long userId;
    private Long bookId;
    private LocalDateTime borrowTime;    // 借阅时间
    private LocalDateTime dueTime;       // 应还时间
    private LocalDateTime returnTime;    // 实际归还时间
    private String status; // 状态：BORROWED（借阅中）、RETURNED（已归还）、OVERDUE（逾期）、OVERDUE_PAID（逾期已缴费）
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private User user;                   // 关联用户
    private Book book;                   // 关联图书
}